package com.sq.ai.mapper;

import com.sq.ai.entry.ChannelVo;
import com.sq.ai.pojo.ZtChannel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Entity com.sq.ai.pojo.ZtChannel
 */

@Mapper
public interface ZtChannelMapper extends BaseMapper<ZtChannel> {


    List<ChannelVo> selectZtChannel(ZtChannel ztChannel);

    @Select("SELECT MAX(channel_id) FROM zt_channel")
    long maxChannelId();

    Integer getChannelIsExit(String channelId);

}




